package com.tsd.system.service;

import com.tsd.system.vo.MiniappSetting;
import com.tsd.system.vo.MpSetting;
import com.tsd.system.vo.OpenSetting;
import com.tsd.system.vo.WxPaySetting;

/**
 * @ClassName: WxSettingService
 * @Description: TODO
 * @Author: Hillpool
 * @Date: 2022/7/6 16:07
 * @Version: 1.0
 */
public interface WxSettingService {

    /**
     * 获取微信开放平台配置
     *
     * @return
     * @throws Exception
     */
    OpenSetting getWxOpenSetting() throws Exception;

    /**
     * 清除微信开放平台配置的缓存
     */
    void clearWxOpenCache();

    /**
     * 获取微信公众号配置
     *
     * @return
     * @throws Exception
     */
    MpSetting getWxMpSetting() throws Exception;

    /**
     * 清除微信公众号配置的缓存
     */
    void clearWxMpCache();

    /**
     * 获取微信小程序配置
     *
     * @return
     * @throws Exception
     */
    MiniappSetting getWxMiniappSetting() throws Exception;

    /**
     * 清除微信小程序配置的缓存
     */
    void clearWxMiniappCache();


    /**
     * 获取微信支付配置
     *
     * @return
     * @throws Exception
     */
    WxPaySetting getWxPaySetting() throws Exception;

    /**
     * 清除微信支付配置的缓存
     */
    void clearWxPaySettingCache();
}
